<template>
  <div>
    <h2>Two:{{ count }}--num:{{ num }}</h2>
    <button @click="addCount">count累加</button>
    <button @click="addNum">num累加</button>
  </div>
</template>

<script>
import One from "@/components/One";
export default {
  name: "Two",
  extends: One,
  data() {
    return {
      num: 10,
    };
  },
  methods: {
    addNum() {
      this.num++;
    },
  },
  mounted() {
    console.log("Two的专属");
  },
};
</script>

<style></style>
